<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let promise = new Promise((resole, reject) => {
      reject("失败了")
    });
    promise.then(value1 => {
      console.log("value1:", value1);
    }, null).then(value2 => {
      console.log("value2:", value2);
    }, err2 => {
      console.log("err2", err2)
    })
  </script>
</body>

</html>